//
//  NSObject+CNForDic.m
//  BeeQuick_19
//
//  Created by whong7 on 16/9/26.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "NSObject+CNForDic.h"

@implementation NSObject (CNForDic)

+(NSDictionary *)DictOfModel:(NSObject *)model
{
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    [dict setValue:[model valueForKey:@"partner_price"] forKey:@"partner_price"];
    [dict setValue:[model valueForKey:@"img"] forKey:@"img"];
    [dict setValue:[model valueForKey:@"name"] forKey:@"name"];
    [dict setValue:[model valueForKey:@"goods_id"] forKey:@"goods_id"];
    [dict setValue:[model valueForKey:@"count"] forKey:@"count"];
    
    
    
    return dict.copy;
}

@end
